using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Opc.Ua;

namespace OpcuaClient.Model
{
    /// <summary>
    /// 数据采集结构体
    /// </summary>
    public class Construction
    {
        /// <summary>
        /// 结构体主键
        /// </summary>
        public string Key { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 数据刷新频率
        /// </summary>
        public int Frequency { get; set; }
        /// <summary>
        /// 结构体描述
        /// </summary>
        public string Desc { get; set; }
        /// <summary>
        /// 消息主题
        /// </summary>
        public string Topic { get; set; }
        /// <summary>
        /// 结构体状态
        /// </summary>
        public bool Status { get; set; }
        /// <summary>
        /// 采集完成时间
        /// </summary>
        public DateTime CollectionTime { get; set; }
        /// <summary>
        /// 属性值
        /// </summary>
        public List<ConstructionKeyValue> KeyValues { get; set; } = new List<ConstructionKeyValue>();
    }
}
